package cn.vihub.config;

import io.minio.MinioClient;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MInioConfig {

    @Value("${minio.host}")
    private String minioHost;

    @Bean
    public MinioClient minioClient(){
        return MinioClient.builder().endpoint(minioHost).build();
    }

}
